<?php

namespace Modules\Api\Controllers;

use Models\Services\WxArticle;

class IndexController extends ControllerBase {
    public function indexAction() {
        die("1111");
    }

    public function contactAction() {
        $articleModel = WxArticle::findFirstById(1);

        if (!$articleModel instanceof WxArticle) {
            echo "内容为空";
            return false;
        }

        $this->view->setVar("content", $articleModel->getContent());
        $this->view->setTemplateBefore('default');
    }

    public function menuAction() {
        $this->view->setTemplateBefore('default');
    }

    /**
     * 当前位置--面包屑导航
     */
    public function public_current_pos() {
        //echo admin::current_pos($_GET['menuid']);
        exit;
    }

    public function testAction() {
        $this->view->setTemplateBefore('default');
    }

}

